import { defineStore } from 'pinia'
import { RouteRecordName } from 'vue-router'

type RouteStore = {
  /** 菜单当前选中的路由name */
  menuCurrentRouteName: RouteRecordName | null | undefined
}

export const useRouteStore = defineStore({
  id: `route`,
  state: (): RouteStore => ({
    menuCurrentRouteName: undefined,
  }),
})
